﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MH3GAPP.Bll;
using MH3GAPP.Dal;
using MH3GAPP.Common;


namespace MH3GAPP.Frm
{
    public partial class ArmSearchForm : Form
    {
        #region var_全局变量
        private static ArmSearchForm instance;
        private MH3GBll mh3gBll = new MH3GBll();
        #endregion


        #region Constructor_构造函数
        private ArmSearchForm()
        {
            InitializeComponent();
        }
        #endregion

        #region GetInstance_取得实例
        public static ArmSearchForm GetInstance()
        {
            if (instance == null)
            {
                instance = new ArmSearchForm();
            }
            return instance;
        }
        #endregion

        #region ArmSearchForm_FormClosing_窗口关闭
        private void ArmSearchForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            instance = null;
        }
        #endregion

        private void button1_Click(object sender, EventArgs e)
        {
            int skill_1_ID = 7;
            int skill_2_ID = 15;
            int skill_3_ID = 27;
            int skill_4_ID = 37;
            int skill_5_ID = -1;
            int skill_6_ID = -1;
            int skill_7_ID = -1;

            DataTable dt_part_1_ID = new DataTable();
            DataTable dt_part_2_ID = new DataTable();
            DataTable dt_part_3_ID = new DataTable();
            DataTable dt_part_4_ID = new DataTable();
            DataTable dt_part_5_ID = new DataTable();

            dt_part_1_ID = mh3gBll.getArmPartIDForSearch(1, 1, 1);


            foreach (DataRow tmpRow in dt_part_1_ID.Rows)
            {
                DataTable part_1_skill = new DataTable();
                int arm_id = int.Parse(tmpRow["Amr_ID"].ToString());
                
            }
        }



    }
}
